package geecache



// 必须被实现的接口，实现该接口可以根据key返回获取key数据的http client
type PeerPicker interface {
	PickPeer(key string) (peer PeerGetter, ok bool)
}

// Http客户端，必须由节点实现的接口
type PeerGetter interface {
	Get(group string, key string) ([]byte, error)
}




